package com.leyou.search.clients;

import com.leyou.item.pojo.Brand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("item-service")
public interface BrandClient {

    @GetMapping("brand/brandId")
    String queryBrandById(@RequestParam("bid") Long bid);

    @GetMapping("brand")
    List<Brand> queryBrandByIds(@RequestParam(value = "bids", required = false) List<Long> bids);
}
